from flask_wtf import Form

from wtforms import StringField, BooleanField, TextAreaField
from wtforms.validators import DataRequired

class LoginForm(Form):
    openid = StringField('openid', validators=[DataRequired()])
    remember_me = BooleanField('remember_me', default=False)

class SentenceForm(Form):
    # 20190316 内容过滤？
    content = TextAreaField('content', validators=[DataRequired(message='不能为空')],render_kw={'cols': 50, 'rows': 15})
